<?php
declare (strict_types=1);

namespace app\index\controller;

use app\common\model\ProductCate;
use app\common\model\Carousel;
use think\facade\Cache;
use think\facade\View;

class Shop extends Base
{

    public function index()
    {
        View::assign([
            'carousel' => Carousel::getList(['type'=>1]),
            'cate'     => ProductCate::where(['status' => 1, 'pid' => 1])->select(),
        ]);
        return View::fetch();
    }
}
